<template>
	<view class="main-container">
			物流情况
			<logistics :wlInfo="wlInfo"></logistics>
	</view>
</template>

<script>
	import {
		confirmReceiveOrderAddress,
	} from '@/api/order.js';
	import logistics from '@/components/xinyu-logistics.vue';
	export default {
		components: { logistics },
		data() {
			return {
				orderId: null,
				wlInfo:{
					eBusinessID:'',
					shipperCode:'',
					logisticCode:'',
					stateEx:'',
					location:'',
					state:'',
					deliveryManTel:'',
					success:'',
					traces:[
						{
							action:'',
							acceptStation:'',
							acceptTime:'',
							location:''
						}
					]
				}
			}
		},
			onLoad(option) {
				//商品数据
				this.orderId = option.orderId;
				this.getList();
			},
		methods: {
			getList(){
				confirmReceiveOrderAddress(this.orderId).then(response=>{
					this.wlInfo=response.data
				});
			}
		}
	}
</script>

<style>

</style>
